package com.ray.util.dk;



public final class GUID {
	private static GUID guid=new GUID();
	private SnowflakeIdWorker idWorker=null;
	private  GUID(){
		idWorker=new SnowflakeIdWorker(1,2);//外出 1,2
	}
	public static GUID getInstance() {
		return guid;
	}
	public long getGuid() {  
		return idWorker.nextId();
	}
	
	public static void main(String[] args) {
		GUID guid = GUID.getInstance();
		System.out.println(guid.getGuid());
	}
}
